package com.weixin.base.service;

import java.util.List;
import java.util.Map;

import cn.org.rapid_framework.page.Page;
import cn.org.rapid_framework.page.PageRequest;

import com.weixin.entity.BgRight;

/**
 * 角色业务接口
 */
public interface RoleService {
	/**
	 * 添加角色
	 */
	public void addRole(BgRight bgright);
	/**
	 * 角色查询
	 */
	public Page findByPageRequest(PageRequest<Map> pageRequest);
	/**
	 * 修改角色
	 */
	public void upRole(BgRight bgright);
	/**
	 * 删除角色
	 */
	public void deleteRoleById(int ids);
	
	/**
	 * 查询角色菜单读写权限
	 */
	public List<Map<String,Object>> selectRoleMPermiss(int nRoleId);
	
	/**
	 *修改角色菜单读写权限 
	 */
	public void updateRoleMPermiss(int nRoleId,String permissRws);
	/**
	 * 查询角色菜单
	 */
	public Map<String,Object> selRolePermiss(int nRoleId);
	/**
	 * 更新角色菜单
	 */
	public void upDelRolePermiss(int nRoleId,String nNavTrees);
}
